package vg.interfaces.ll_services.data_base_service.data.graph;

/**
 * This is class, which contains all decoders attributes.
 *
 * @author Timur Zolotuhin (e-mail: tzolotuhin@gmail.com)
 */
public class SystemAttributeItem implements Cloneable {
	// Main data
	private int storableId; // id in database
	//private int graphViewId; // id in graph view
	
//=============================================================================
//-----------------Constructors------------------------------------------------
	public SystemAttributeItem(int storableId, int graphViewId) {
		this.storableId = storableId;
		//this.graphViewId = graphViewId;
	}
	
	public SystemAttributeItem() {
		this.storableId = -1;
		//this.graphViewId = -1;
	}
	
	public SystemAttributeItem(SystemAttributeItem item) {
		if (item != null) {
            this.storableId = item.getStorableId();
//		    this.graphViewId = item.getGraphViewId();
        }
	}	
	
//=============================================================================
//-----------------PUBLIC METHODS----------------------------------------------	
	public void setStorableId(int storableId) {
		this.storableId = storableId;
	}
	
	public int getStorableId() {
		return storableId;
	}
	
//	public int getGraphViewId() {
//		return graphViewId;
//	}
	
//	public void setGraphViewId(int graphViewId) {
//		this.graphViewId = graphViewId;
//	}
	
	@Override
	public SystemAttributeItem clone() {
		SystemAttributeItem item = new SystemAttributeItem(this);
		return item;
	}
}
